package cn.kz.hrm.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component //交给spring管理
@ConfigurationProperties(prefix = "hrm.register") //yml路径中路径
public class RegisterConfigPropertis {
    //验证码的宽度
    private int codewidth = 100;
    //验证码的高度
    private int codeheight = 40;
    //验证码的过期时间，单位是秒
    private int codeeouttime = 600;

    public int getCodelength() {
        return codelength;
    }

    public void setCodelength(int codelength) {
        this.codelength = codelength;
    }

    //private 验证码的长度
    private int codelength = 4;

    public int getCodewidth() {
        return codewidth;
    }

    public void setCodewidth(int codewidth) {
        this.codewidth = codewidth;
    }

    public int getCodeheight() {
        return codeheight;
    }

    public void setCodeheight(int codeheight) {
        this.codeheight = codeheight;
    }

    public int getCodeeouttime() {
        return codeeouttime;
    }

    public void setCodeeouttime(int codeeouttime) {
        this.codeeouttime = codeeouttime;
    }
}
